import request from "../request.js";

// 积分中心
export function score(data) {
  return request({
    url: "/api/score",
    method: "post",
    data,
  });
}
// 积分明细
export function score_record(data) {
  return request({
    url: "/api/score/record",
    method: "post",
    data,
  });
}
// 积分排行榜
export function score_ranking(data) {
  return request({
    url: "/api/score/ranking",
    method: "post",
    data,
  });
}
// 积分商品详情
export function score_goodsDetail(data) {
  return request({
    url: "/api/score/goods_detail",
    method: "post",
    data,
  });
}
// 积分商品确认兑换
export function score_add(data) {
  return request({
    url: "/api/score/add",
    method: "post",
    data,
  });
}
// 积分商品兑换记录
export function score_history(data) {
  return request({
    url: "/api/score/history",
    method: "post",
    data,
  });
}
// 积分商品兑换记录-删除
export function score_del(data) {
  return request({
    url: "/api/score/del",
    method: "post",
    data,
  });
}

// 积分商品兑换记录-确认收货
export function score_verify(data) {
  return request({
    url: "/api/score/verify",
    method: "post",
    data,
  });
}
